﻿/* 2. Write a boolean expression that checks for given integer 
 * if it can be divided (without remainder) by 7 and 5 in the same time. */

using System;

public class DividedBy
{
    public static void Main()
    {
        int number;

        Console.Write("The number = ");
        try
        {
            number = int.Parse(Console.ReadLine());
            if (number % (7 * 5) == 0)
                Console.WriteLine("can be divided without remainder by 7 and 5 in the same time.");
            else
                Console.WriteLine("can't be divided without remainder by 7 and 5 in the same time.");
        }
        catch (ArgumentNullException)
        {
            Console.WriteLine("is 'null'!");
        }
        catch (OverflowException)
        {
            Console.WriteLine("is out of range of 'int' type!");
        }
        catch (FormatException)
        {
            Console.WriteLine("is not integer (or it's not a number)!");
        }
    }
}